<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>

<%@ include file="/_taglib.jsp" %>

<%@ include file="/_navbar.jsp" %>

<script type="text/javascript">
<!--
		var setting = {
			data: {
				simpleData: {
					enable: true
				}
			},
			callback: {
				//onRightClick: OnRightClick
			}
		};
		

		
		$(function (){
			$.getJSON("sys/ehcache/contentInfo4ztree", function(json){
				console.debug(json);
				var ttt = $.fn.zTree.init($("#ehcacheTree"), setting, json);
				console.debug(ttt);
			});
		});
		
		function OnRightClick(event, treeId, treeNode) {
			/*
			if (!treeNode && event.target.tagName.toLowerCase() != "button" && $(event.target).parents("a").length == 0) {
				zTree.cancelSelectedNode();
				showRMenu("root", event.clientX, event.clientY);
			} else if (treeNode && !treeNode.noR) {
				zTree.selectNode(treeNode);
				showRMenu("node", event.clientX, event.clientY);
			}*/
			//alert(treeId+treeNode.id);
		}		
		
		function clearCache(){
			ajaxPost("sys/ehcache/clearAllCache",null);
		}
//-->
</script>

		<div class="box box-info">
			<div class="box-header">
				<h3 class="box-title">EhCache缓存</h3>
				<a onclick="clearCache();">清除</a>
            </div>
			<div class="box-body">
				<div class="zTreeDemoBackground left">
					<ul id="ehcacheTree" class="ztree"></ul>
				</div>
                          	</div>                                	
		</div>

<%@ include file="/_edit_js.jsp" %>
